package com.inspur_video.inspur_video.service;

import com.inspur_video.inspur_video.bean.History;
import com.inspur_video.inspur_video.dao.HistoryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-08-02 17:12
 * @package com.inspur_video.inspur_video.service
 * @description
 */
@Service
public class HistoryService {
    @Autowired
    HistoryDao historyDao;
    public List<History> findByUIdOrderByWatchTime(int id){
        return historyDao.findByUIdOrderByWatchTime(id);
    }

}
